/**
 * Copyright (c) qzsoft All rights reserved.
 * <p>
 * qzsoft.cn
 * <p>
 * 版权所有，侵权必究！
 */

package com.qzsoft.system.repository.sys.dao;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qzsoft.jeemis.common.dao.BaseDao;
import com.qzsoft.system.modules.permission.user.dto.SysUserInfoDto;
import com.qzsoft.system.repository.sys.entity.SysDeptEntity;
import com.qzsoft.system.repository.sys.entity.SysUserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 系统用户
 */
@Mapper
public interface SysUserDao extends BaseDao<SysUserEntity> {
    List<SysUserInfoDto> getListPageInDeptAndChildren(Page<SysUserInfoDto> page, @Param("params") Map<String, Object> params);


    public List<Map> getUserByUserName(String userName);

    List<SysUserInfoDto> getListPageInDept(Page<SysUserInfoDto> page, @Param("params") Map<String, Object> params);

    String queryDeptConcatNameByDeptId(Long deptId);

    List<SysUserInfoDto> getListNotInSysUserLink(Page<SysUserInfoDto> page, Map<String, Object> params);

/***************  2020-10-10 15:25:50  代码迁移  高丙祥  ADD START  ***************/
    List<SysUserInfoDto> getListPage(Page<SysUserInfoDto> page, @Param("params") Map<String, Object> params);

    List<SysUserInfoDto> getListPageInSysUser(Page<SysUserInfoDto> page, @Param("params") Map<String, Object> params);

    int updateBatchByDeptCode(@Param("list") List<SysDeptEntity> list);

    IPage<SysUserInfoDto> getWaagPageList(Page<SysUserInfoDto> page, @Param("params") Map<String, Object> params);

/***************  2020-10-10 15:50:50  代码迁移  高丙祥  ADD END  ***************/
}